Alex Crichton [Mon, 6 Oct 2014 18:27:16 +0000 (11:27 -0700)]
Remove the notion of "primary" from Context
Now that we have selective testing, this no longer makes any sense and all
queries to the path layout need to be based on the package being queried for.
This removes the primary flag from the Context, and requires that the `layout`
method have a local Package available
cc servo/servo#3580
bors [Mon, 6 Oct 2014 14:15:07 +0000 (14:15 +0000)]
auto merge of #672 : bkoropoff/cargo/option-map-cleanup, r=alexcrichton
This reduces syntactic noise and is a good use case for `if let`, which I turned on.
Brian Koropoff [Sun, 5 Oct 2014 22:59:58 +0000 (15:59 -0700)]
Clean up some uses of `Option::map` only for its side effects
bors [Mon, 6 Oct 2014 03:15:06 +0000 (03:15 +0000)]
auto merge of #667 : jakerr/cargo/help-help, r=alexcrichton
This adds a dummy help command so that it's usage can be documented with docopt! This lets `cargo help help` work.
Also adds help flags to all of the subcommands that were missing them. Without
that `cargo help sub-command` shows Invalid Argument before the usage text.
bors [Mon, 6 Oct 2014 02:30:06 +0000 (02:30 +0000)]
auto merge of #670 : bkoropoff/cargo/unused-everywhere, r=alexcrichton
I'm not sure what changed, but unused value lints were popping up everwhere when I tried to build today.
This turns on the `if let` feature since it allows rewriting a lot of calls to `Option::map` that were only being used for their side effects into a clean form. Cargo seems as good of a place as any to dogfood it.
Brian Koropoff [Sun, 5 Oct 2014 23:06:50 +0000 (16:06 -0700)]
Remote `unused` lint
It's causing tons of not-very-helpful errors that are breaking the build.
Jake Kerr [Sun, 5 Oct 2014 07:13:43 +0000 (16:13 +0900)]
Let the help command work consistently everywhere
This adds a dummy help command so that it's usage can be documented with docopt!
Also adds help flags to all of the subcommands that were missing them. Without
that `cargo help sub-command` shows Invalid Argument before the usage text.
bors [Fri, 3 Oct 2014 01:57:14 +0000 (01:57 +0000)]
auto merge of #630 : alexcrichton/cargo/issue-432, r=brson
This is a series of commits which culminates in fixing #432, fixing a number of other related issues along the way. The biggest user-facing fix here is that if you run `cargo build` followed by `cargo test` your library will no longer be rebuilt if you have dev-dependencies.
Alex Crichton [Wed, 24 Sep 2014 05:14:02 +0000 (22:14 -0700)]
Add a test for #432
All problems have been fixed in the previous commits, and this now closes #432
Alex Crichton [Wed, 24 Sep 2014 05:13:27 +0000 (22:13 -0700)]
Fix dependencies linking to the local package
This is a legitimate possibility which doesn't necessarily imply a cycle, so the
case needs to be handled.
Alex Crichton [Wed, 24 Sep 2014 05:12:01 +0000 (22:12 -0700)]
Fix the dependency graph with root pkg cycles
If the root package ended up depending on itself through some development
dependency (technically not a cycle), then the resolve phase would currently
overwrite some previous result, destroying the progress. By registering the root
package as seen early on this prevents the overwriting from happening and
instead appending happens.
Alex Crichton [Wed, 24 Sep 2014 05:10:32 +0000 (22:10 -0700)]
Allow "cycles" through dev-deps
Development dependencies can never be the root of a cycle because nothing
depends on a development dependency, so there's no need to track the start of a
cycle at the edge going out to a development dependency.
If a cycle is later detected, it will still be reported.
Alex Crichton [Tue, 23 Sep 2014 22:22:14 +0000 (15:22 -0700)]
Refine dependencies on dev-deps
Currently whenever a dev-dep is brought in to the build process the entire
library is rebuilt, but this is just unnecessary recompilation because the
library *can't* depend on the dev-dep.
This commit refines the dependency graph so the lib stage only depends on
transitive dependencies (non-dev-deps), and a new stage for tests was added
which depends on the packages libraries *and* the dev-deps. This way only the
test are rebuilt when dev-deps change, not libraries.
bors [Thu, 2 Oct 2014 20:07:47 +0000 (20:07 +0000)]
auto merge of #659 : alexcrichton/cargo/licenseing, r=brson
This follows #656 by mentioning OpenSSL in the README, as well as install all
license files on installation. A hand-generated LICENSE-THIRD-PARTY is also
included.
Closes #656
This also approaches #657 by mentioning that we have GPL software in the README.
Cargo will hopefully support a more complete "all source" distribution in the
future, but at this time there is not an easy way to generate a complete source
tarball via cargo.
bors [Thu, 2 Oct 2014 19:50:46 +0000 (19:50 +0000)]
auto merge of #654 : ebfe/cargo/cargo-build-help, r=alexcrichton
Alex Crichton [Thu, 2 Oct 2014 19:40:33 +0000 (12:40 -0700)]
Install materials to comply with upstream licenses
This follows #656 by mentioning OpenSSL in the README, as well as install all
license files on installation. A hand-generated LICENSE-THIRD-PARTY is also
included.
Closes #656
This also approaches #657 by mentioning that we have GPL software in the README.
Cargo will hopefully support a more complete "all source" distribution in the
future, but at this time there is not an easy way to generate a complete source
tarball via cargo.
bors [Thu, 2 Oct 2014 19:36:10 +0000 (19:36 +0000)]
auto merge of #652 : tomaka/cargo/open-docs, r=alexcrichton
Opens the generated docs in a browser.
Since it's more a utility feature, I didn't write this in a robust way. There's no error if it fails to open a browser.
bors [Thu, 2 Oct 2014 19:13:13 +0000 (19:13 +0000)]
auto merge of #631 : alexcrichton/cargo/issue-514, r=brson
If the host system had $HOME/.cargo/config which configured a user name/email
then this test would fail because those would be prioritized over $USER.
Closes #514
bors [Thu, 2 Oct 2014 19:00:24 +0000 (19:00 +0000)]
auto merge of #655 : ebfe/cargo/deps, r=alexcrichton
At least rust-encoding needs updating to compile with rust master.
Pierre Krieger [Wed, 1 Oct 2014 06:53:05 +0000 (08:53 +0200)]
Add --open flag to cargo doc
Michael Gehring [Thu, 2 Oct 2014 17:08:00 +0000 (19:08 +0200)]
Update dependencies
Michael Gehring [Thu, 2 Oct 2014 16:15:17 +0000 (18:15 +0200)]
Fix typos in `cargo build -h`
bors [Tue, 30 Sep 2014 02:45:09 +0000 (02:45 +0000)]
auto merge of #650 : plcstpierre/cargo/master, r=alexcrichton
At least fixing https://github.com/alexcrichton/git2-rs/issues/10
Pier-Luc Caron St-Pierre [Tue, 30 Sep 2014 02:06:39 +0000 (22:06 -0400)]
Bump version of dependencies
bors [Tue, 30 Sep 2014 00:00:10 +0000 (00:00 +0000)]
auto merge of #628 : alexcrichton/cargo/issue-537, r=brson
This is rebased on https://github.com/rust-lang/cargo/pull/617 as I wanted to use one of the functions added in the patch. Otherwise the details are in the commits.
Alex Crichton [Sat, 27 Sep 2014 04:45:51 +0000 (21:45 -0700)]
Improve the error message for ambiguous specs
Alex Crichton [Sat, 27 Sep 2014 04:24:31 +0000 (21:24 -0700)]
Deprecate `cargo update foo`
To maintain consistency with `cargo {build,test,bench,clean}` the `update`
subcommand now takes a specific package via the `-p` argument instead of as a
positional argument.
Alex Crichton [Wed, 24 Sep 2014 01:10:27 +0000 (18:10 -0700)]
Add cargo {test,bench} -p <spec>
This functionality allows running tests and benchmarks on any upstream
dependencies in the dependency graph. This is most useful for path sources all
developed in tandem (see Servo for instance).
In terms of built artifacts, this will actually preserve as many artifacts as
possible. That means that if you test a low-level dependency with the high-level
artifacts already built, the high-level artifacts will not get removed. This
means that it's possible to accidentally have a low-level dependency to depend
on a higher level one just because it's lib is picked up via -L, but this is
generally a necessary evil to get testing to not rebuild packages too often.
Closes #483
Alex Crichton [Tue, 23 Sep 2014 16:16:25 +0000 (09:16 -0700)]
Allow specifying what to build as part of `cargo build`
This allows selectively building one dependency within a dependency graph for
debugging its build or such.
Closes #537
Alex Crichton [Tue, 23 Sep 2014 16:03:34 +0000 (09:03 -0700)]
Allow selectively cleaning packages
This adds a new argument to `cargo clean` which will enable selectively cleaning
particular packages. The command only cleans the package specified, no other
(not the dependencies of the package).
cc #537
bors [Mon, 29 Sep 2014 14:00:13 +0000 (14:00 +0000)]
auto merge of #647 : dotdash/cargo/entry, r=alexcrichton
Björn Steinbrink [Mon, 29 Sep 2014 12:41:52 +0000 (14:41 +0200)]
Use the new Entry API for HashMaps
bors [Sun, 28 Sep 2014 23:00:13 +0000 (23:00 +0000)]
auto merge of #645 : bkoropoff/cargo/fix-infinite-recursion, r=alexcrichton
Insert necessary explicit derefs.
Brian Koropoff [Sun, 28 Sep 2014 21:39:06 +0000 (14:39 -0700)]
Fix infinite recursion in CargoError impl for Box<CargoError>
Insert necessary explicit derefs.
Alex Crichton [Wed, 24 Sep 2014 05:23:10 +0000 (22:23 -0700)]
Make a test more resilient against the host system
If the host system had $HOME/.cargo/config which configured a user name/email
then this test would fail because those would be prioritized over $USER.
Closes #514
bors [Thu, 25 Sep 2014 16:50:29 +0000 (16:50 +0000)]
auto merge of #624 : alexcrichton/cargo/issue-484, r=wycats
This commit adds a flag, --precise, to cargo update. This flag is used to update
a dependency to precisely an exact revision (or branch) as part of an update
step. For git repositories the argument is some form of reference, while
registry packages this will be a version number.
The flag --precise forces a non-aggressive update and will fail if the
--aggresive flag is specified.
Closes #484
r? @wycats
Alex Crichton [Tue, 23 Sep 2014 14:30:16 +0000 (07:30 -0700)]
Allow updating to a precise revision
This commit adds a flag, --precise, to cargo update. This flag is used to update
a dependency to precisely an exact revision (or branch) as part of an update
step. For git repositories the argument is some form of reference, while
registry packages this will be a version number.
The flag --precise forces a non-aggressive update and will fail if the
--aggresive flag is specified.
Closes #484
bors [Thu, 25 Sep 2014 15:51:37 +0000 (15:51 +0000)]
auto merge of #625 : alexcrichton/cargo/no-more-deprecated, r=brson
This flag has been deprecated in favor of `cargo update` for quite some time
now.
r? @brson
bors [Thu, 25 Sep 2014 15:40:30 +0000 (15:40 +0000)]
auto merge of #635 : alexcrichton/cargo/update, r=alexcrichton
Also stop denying all warnings and only deny some common warnings. Allow
warnings such as deprecation.
Closes #634
Alex Crichton [Thu, 25 Sep 2014 15:16:19 +0000 (08:16 -0700)]
Update to rust master
Also stop denying all warnings and only deny some common warnings. Allow
warnings such as deprecation.
Closes #634
Alex Crichton [Tue, 23 Sep 2014 14:33:23 +0000 (07:33 -0700)]
Remove the deprecated -u flag
This flag has been deprecated in favor of `cargo update` for quite some time
now.
bors [Wed, 24 Sep 2014 23:45:16 +0000 (23:45 +0000)]
auto merge of #617 : alexcrichton/cargo/issue-597, r=brson
Ensure that the dynamic linker search path contains the location of the output
directories for these dependencies when compiling with plugins.
Closes #597
bors [Wed, 24 Sep 2014 13:58:39 +0000 (13:58 +0000)]
auto merge of #632 : EduardoBautista/cargo/fix-width-in-safari, r=alexcrichton
Text is not responsive under 629px in Safari.
bors [Wed, 24 Sep 2014 09:13:40 +0000 (09:13 +0000)]
auto merge of #627 : dotdash/cargo/rustup, r=alexcrichton
Eduardo Bautista [Wed, 24 Sep 2014 06:33:35 +0000 (01:33 -0500)]
Fit text within window in Safari when under 629px in width
Björn Steinbrink [Tue, 23 Sep 2014 18:27:48 +0000 (20:27 +0200)]
Fix building with current rustc
bors [Tue, 23 Sep 2014 01:53:52 +0000 (01:53 +0000)]
auto merge of #509 : alexcrichton/cargo/features, r=wycats
This feature was outlined in #385 [1], and documentation has been included as
part of this commit.
[1]: https://github.com/rust-lang/cargo/issues/385#issuecomment-
53917539
Closes #385
Alex Crichton [Wed, 3 Sep 2014 18:52:47 +0000 (11:52 -0700)]
Implement `features`
This feature was outlined in #385 [1], and documentation has been included as
part of this commit.
[1]: https://github.com/rust-lang/cargo/issues/385#issuecomment-
53917539
bors [Tue, 23 Sep 2014 01:34:57 +0000 (01:34 +0000)]
auto merge of #618 : alexcrichton/cargo/issue-593, r=wycats
This gives cargo a way to uniquely reference a package within a dependency graph. This is currently only used for `cargo update` and `cargo pkgid`, but this will extend in the future to possible configuration keys in the manifest, other commands like `clean`, etc.
Closes #593
Alex Crichton [Mon, 22 Sep 2014 00:59:19 +0000 (17:59 -0700)]
Add some HTML docs for pkgid specs
Alex Crichton [Mon, 22 Sep 2014 00:42:46 +0000 (17:42 -0700)]
Add a pkgid id command and update docopt docs
Alex Crichton [Mon, 22 Sep 2014 00:22:26 +0000 (17:22 -0700)]
Hook up `cargo update` to pkgids
Alex Crichton [Mon, 22 Sep 2014 00:11:36 +0000 (17:11 -0700)]
Implement a package id specification format
bors [Mon, 22 Sep 2014 20:58:34 +0000 (20:58 +0000)]
auto merge of #614 : alexcrichton/cargo/issue-613, r=brson
As described in #613, this commit switches the semantics of `cargo update foo`
to updating *only* `foo`, not any of its dependencies. A new flag,
`--aggressive` was added to restore the old behavior.
The behavior of attempting to only unlock `foo`, and then if resolve fails
unlock all dependencies of `foo` is unimplemented as it's not super relevant
right now when the majority of dependencies are git dependencies and resolution
cannot fail for version-related reasons.
Closes #613
bors [Mon, 22 Sep 2014 18:58:36 +0000 (18:58 +0000)]
auto merge of #622 : steveklabnik/cargo/update_semver, r=alexcrichton
This closes the loop on my work of getting semver related stuff out of cargo.
This is also built on top of my other PR, so it's not really ready until that actually merges. But it can stand for review now :)
bors [Mon, 22 Sep 2014 18:20:24 +0000 (18:20 +0000)]
auto merge of #623 : alexcrichton/cargo/update_to_head, r=alexcrichton
Alex Crichton [Mon, 22 Sep 2014 18:18:18 +0000 (11:18 -0700)]
Don't use a bundled gcc on windows
Steve Klabnik [Mon, 22 Sep 2014 17:09:27 +0000 (13:09 -0400)]
Remove version_req.rs in favor of SemVer.
This removes all of the stuff that was in Cargo but should have been in
SemVer, as far as I know. :confetti-ball:
Steve Klabnik [Mon, 22 Sep 2014 16:52:41 +0000 (12:52 -0400)]
move to new interface
Steve Klabnik [Mon, 22 Sep 2014 16:39:33 +0000 (12:39 -0400)]
update semver to 0.1.0
Steve Klabnik [Mon, 22 Sep 2014 16:27:36 +0000 (12:27 -0400)]
update to HEAD
bors [Mon, 22 Sep 2014 01:13:37 +0000 (01:13 +0000)]
auto merge of #616 : iliekturtles/cargo/patch-2, r=alexcrichton
Closes #615.
Current links are 404. Updated to the i686-w64 nightlies.
Alex Crichton [Sun, 21 Sep 2014 22:15:00 +0000 (15:15 -0700)]
Allow plugins to have native dylib dependencies
Ensure that the dynamic linker search path contains the location of the output
directories for these dependencies when compiling with plugins.
Closes #597
Mike Boutin [Sun, 21 Sep 2014 22:07:18 +0000 (18:07 -0400)]
Fix Rust and Cargo nightly Windows links.
Closes #615.
bors [Sun, 21 Sep 2014 21:39:47 +0000 (21:39 +0000)]
auto merge of #605 : brson/cargo/https, r=alexcrichton
Alex Crichton [Sun, 21 Sep 2014 21:27:30 +0000 (14:27 -0700)]
Make `cargo update` more conservative.
As described in #613, this commit switches the semantics of `cargo update foo`
to updating *only* `foo`, not any of its dependencies. A new flag,
`--aggressive` was added to restore the old behavior.
The behavior of attempting to only unlock `foo`, and then if resolve fails
unlock all dependencies of `foo` is unimplemented as it's not super relevant
right now when the majority of dependencies are git dependencies and resolution
cannot fail for version-related reasons.
Closes #613
bors [Sun, 21 Sep 2014 21:19:06 +0000 (21:19 +0000)]
auto merge of #612 : alexcrichton/cargo/nocapture, r=wycats
There are some competing concerns when it comes to the output of compiling
dependencies:
* Not capturing anything leads to getting drowned in unrelated output
* Capturing requires coloration be compromised because of the way windows
terminal colors are implemented.
* Path dependencies are often developed in tandem with the rest of a package,
and capturing their output is not always desired.
To address these concerns, cargo previously captured output of dependent
compilations and then re-printed it to the screen if an error occurred. This
patch modifies the behavior to as follows:
* No output is captured. This preserves any coloration rustc provides.
* All dependencies are compiled with `-Awarnings`. This should suppress any
extraneous output from the compiler and it is considered a bug otherwise if
the compiler prints a warnings when `-Awarnings` is specified.
* All *path* dependencies (`path="..."`, overrides, etc) are *not* compiled with
`-Awarnings`. The reason for this is that you are always in control of these
packages and probably want to see warnings anyway.
Closes #490
Closes #496
Alex Crichton [Sun, 21 Sep 2014 17:22:46 +0000 (10:22 -0700)]
Stop capturing output of all dependencies
There are some competing concerns when it comes to the output of compiling
dependencies:
* Not capturing anything leads to getting drowned in unrelated output
* Capturing requires coloration be compromised because of the way windows
terminal colors are implemented.
* Path dependencies are often developed in tandem with the rest of a package,
and capturing their output is not always desired.
To address these concerns, cargo previously captured output of dependent
compilations and then re-printed it to the screen if an error occurred. This
patch modifies the behavior to as follows:
* No output is captured. This preserves any coloration rustc provides.
* All dependencies are compiled with `-Awarnings`. This should suppress any
extraneous output from the compiler and it is considered a bug otherwise if
the compiler prints a warnings when `-Awarnings` is specified.
* All *path* dependencies (`path="..."`, overrides, etc) are *not* compiled with
`-Awarnings`. The reason for this is that you are always in control of these
packages and probably want to see warnings anyway.
Closes #490
Closes #496
bors [Sun, 21 Sep 2014 20:31:12 +0000 (20:31 +0000)]
auto merge of #611 : alexcrichton/cargo/update, r=alexcrichton
Alex Crichton [Sun, 21 Sep 2014 16:27:08 +0000 (09:27 -0700)]
Update to rust master
bors [Fri, 19 Sep 2014 18:14:37 +0000 (18:14 +0000)]
auto merge of #604 : klutzy/cargo/win-make-install, r=alexcrichton
Since `Makefile` passes `--destdir="$$(DESTDIR)/"` to `install.sh`,
`make install` tries to install libraries to
`$CFG_DESTDIR$CFG_PREFIX/$CFG_LIBDIR_RELATIVE` which is usually
`//path/to/usr/$CFG_LIBDIR_RELATIVE`.
The POSIX spec [1] states that if path begins with `//` it is
implementation-defined.
Usual systems treat them as normal abaolute path, but cygwin and MSYS
does not! They use `//hostname/path` syntax for network drives.
This caused `make install` issue on Windows.
This patch removes `/` of destdir to solve the issue.
[1]: http://pubs.opengroup.org/onlinepubs/
9699919799/basedefs/V1_chap04.html#tag_04_12
bors [Fri, 19 Sep 2014 17:39:25 +0000 (17:39 +0000)]
auto merge of #591 : alexcrichton/cargo/snapshots, r=alexcrichton
Alex Crichton [Fri, 19 Sep 2014 17:04:39 +0000 (10:04 -0700)]
Register new snapshots
Closes #606
Closes #607
Brian Anderson [Fri, 19 Sep 2014 02:16:19 +0000 (19:16 -0700)]
Change downloads to HTTPS
klutzy [Thu, 18 Sep 2014 17:34:35 +0000 (02:34 +0900)]
Fix `make install` on Windows
Since `Makefile` passes `--destdir="$$(DESTDIR)/"` to `install.sh`,
`make install` tries to install libraries to
`$CFG_DESTDIR$CFG_PREFIX/$CFG_LIBDIR_RELATIVE` which is usually
`//path/to/usr/$CFG_LIBDIR_RELATIVE`.
The POSIX spec [1] states that if path begins with `//` it is
implementation-defined.
Usual systems treat them as normal abaolute path, but cygwin and MSYS
does not! They use `//hostname/path` syntax for network drives.
This caused `make install` issue on Windows.
This patch removes `/` of destdir to solve the issue.
[1]: http://pubs.opengroup.org/onlinepubs/
9699919799/basedefs/V1_chap04.html#tag_04_12
bors [Fri, 19 Sep 2014 01:43:36 +0000 (01:43 +0000)]
auto merge of #603 : brson/cargo/win, r=alexcrichton,alexcrichton,me
bors [Fri, 19 Sep 2014 00:58:38 +0000 (00:58 +0000)]
auto merge of #600 : alexcrichton/cargo/update-ssl, r=brson
This *should* help with #598, but I'd like to confirm that it's fixed with a
snapshot before marking it as fixed.
bors [Thu, 18 Sep 2014 23:58:40 +0000 (23:58 +0000)]
auto merge of #596 : alexcrichton/cargo/update-git2, r=brson
This brings in a commit which enables global template options by default as part
of initializing new git repositories, allowing a templates to be used as part of
`cargo new`.
Closes #498
Brian Anderson [Thu, 18 Sep 2014 23:57:29 +0000 (16:57 -0700)]
Update windows downloads
bors [Thu, 18 Sep 2014 18:43:40 +0000 (18:43 +0000)]
auto merge of #599 : epdtry/cargo/profile-codegen-units, r=alexcrichton
If the profile sets `codegen-units`, the value will be passed to `rustc`'s `-C codegen-units` option. If no value is set, then no argument will be passed, so `rustc` will use its default settings.
Alex Crichton [Thu, 18 Sep 2014 17:56:38 +0000 (10:56 -0700)]
Update openssl-static-sys for ubuntu 10.04
This *should* help with #598, but I'd like to confirm that it's fixed with a
snapshot before marking it as fixed.
Stuart Pernsteiner [Thu, 18 Sep 2014 17:49:43 +0000 (10:49 -0700)]
add codegen-units option to profile section
Alex Crichton [Thu, 18 Sep 2014 15:51:00 +0000 (08:51 -0700)]
Update git2-rs
This brings in a commit which enables global template options by default as part
of initializing new git repositories, allowing a templates to be used as part of
`cargo new`.
Closes #498
bors [Wed, 17 Sep 2014 20:15:50 +0000 (20:15 +0000)]
auto merge of #589 : alexcrichton/cargo/fix-win64, r=alexcrichton
See comments in the makefile
Alex Crichton [Wed, 17 Sep 2014 19:30:58 +0000 (12:30 -0700)]
Set PWD in a unix fashion for distcheck
See comments in the makefile
bors [Wed, 17 Sep 2014 17:43:29 +0000 (17:43 +0000)]
auto merge of #586 : alexcrichton/cargo/fix-win64, r=brson
Right now the win64 snapshot builders are failing to produce a snapshot, and
I've managed to track it down to a path length issue. Windows paths have a
maximum of 260 characters, and the characters add up pretty fast for a path
like:
c:\bot\slave\cargo-nightly-win-64
\build\target\x86_64-w64-mingw32
\cargo-integration-test\home\.cargo
\git\checkouts\meta-dep-<hash>\
\$SHA\.git\...
The normal builders aren't failing I presume because `cargo-nightly-win-64` is
longer than `cargo-win64-64` (we must be *right up* against the limit). I've
confirmed that this shortening fixes the tests on the bots.
Alex Crichton [Wed, 17 Sep 2014 15:30:35 +0000 (08:30 -0700)]
Shorten the cargo integration test directory name
Right now the win64 snapshot builders are failing to produce a snapshot, and
I've managed to track it down to a path length issue. Windows paths have a
maximum of 260 characters, and the characters add up pretty fast for a path
like:
c:\bot\slave\cargo-nightly-win-64
\build\target\x86_64-w64-mingw32
\cargo-integration-test\home\.cargo
\git\checkouts\meta-dep-<hash>\
\$SHA\.git\...
The normal builders aren't failing I presume because `cargo-nightly-win-64` is
longer than `cargo-win64-64` (we must be *right up* against the limit). I've
confirmed that this shortening fixes the tests on the bots.
Alex Crichton [Wed, 17 Sep 2014 15:27:41 +0000 (08:27 -0700)]
Fix some more deprecation warnings
bors [Wed, 17 Sep 2014 13:55:31 +0000 (13:55 +0000)]
auto merge of #585 : alexcrichton/cargo/update, r=alexcrichton
Alex Crichton [Wed, 17 Sep 2014 13:52:40 +0000 (06:52 -0700)]
Update the toml dependency
Björn Steinbrink [Wed, 17 Sep 2014 09:08:27 +0000 (11:08 +0200)]
Update to new iter names to fix building with current rustc
bors [Wed, 17 Sep 2014 03:39:40 +0000 (03:39 +0000)]
auto merge of #583 : alexcrichton/cargo/local-cargo, r=brson
Alex Crichton [Wed, 17 Sep 2014 03:31:20 +0000 (20:31 -0700)]
Continue to tweak the win64 build process on the bots
Alex Crichton [Wed, 17 Sep 2014 01:49:18 +0000 (18:49 -0700)]
Add an option to bootstrap from a local cargo
bors [Wed, 17 Sep 2014 00:28:36 +0000 (00:28 +0000)]
auto merge of #580 : alexcrichton/cargo/fix-cargo-doc, r=brson
There's no "doc-all" profile, so it needs to be canonicalized when finding the
name of the profile to pass to a build command.
bors [Tue, 16 Sep 2014 23:33:21 +0000 (23:33 +0000)]
auto merge of #570 : alexcrichton/cargo/fetch, r=brson
This command is used to download all dependencies of a package ahead of time to
ensure that no more network communication will be necessary as part of a build.
cc #358
Alex Crichton [Thu, 11 Sep 2014 18:50:57 +0000 (11:50 -0700)]
Implement a `cargo fetch` command
This command is used to download all dependencies of a package ahead of time to
ensure that no more network communication will be necessary as part of a build.
cc #358
bors [Tue, 16 Sep 2014 22:49:51 +0000 (22:49 +0000)]
auto merge of #541 : alexcrichton/cargo/cargo-upload, r=brson
This PR implements the plumbing necessary for uploading packages to a registry, downloading packages, depending on those packages, etc. All APIs (upload/download) are tied to the current implementation of [the registry](https://github.com/alexcrichton/cargo-registry).
Most of the design-level details in this PR are in the first commit. The later commits are largely adding tests, polishing it off, and making it work on windows.
Dependency-wise, this picks up a dependency on `curl-rust`, albeit a small fork until the upstream linkage changes are merged. Linkage details can be found [here](https://github.com/carllerche/curl-rust/pull/16). I'll probably have to do some configuration of the bots to get this to work (or hopefully not!).
r? @wycats
Alex Crichton [Tue, 16 Sep 2014 22:11:47 +0000 (15:11 -0700)]
Tweak filesystem hierarchy format
Alex Crichton [Tue, 16 Sep 2014 19:05:37 +0000 (12:05 -0700)]
Tweak the 32-bit windows triple